package com.hospital.billcommon.module.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.billcommon.module.controller.dto.BillDto;
import com.hospital.billcommon.module.controller.dto.RefundBillVo;
import com.hospital.billcommon.module.entity.OutpBillitem;
import org.springframework.web.client.RestTemplate;

import java.util.List;

/**
 * @description 门诊患者数据插入接口
 * @author: liuwei
 * @create 2020/5/21 5:08 下午
 **/
public interface OutpPriceService extends IService<OutpBillitem> {

    boolean insertOutpBillItemList(List<OutpBillitem> list, BillDto billDto, RestTemplate restTemplate) throws Exception;
    boolean insertOutpRefundBillItemList(List<OutpBillitem> list, RefundBillVo refundBillVo, RestTemplate restTemplate) throws Exception;
    Object getMaxItemNo(String visitDate, String visitNo);
    String getItemOutpRcptClass(String itemCode, String itemSpec);
    String getSettleUrl();
    String getbillSpec(String visitDate, String visitNo, String itemCode);
    long getCount(String itemCode, String type);

    String getVisitNo();
}
